String.prototype.getExtension = function () {//returns the extension of a path or file
        return this.split('.').pop().toLowerCase();
    };
/**
 * 
 */
var vueappBase={
		data:{
			dataDic:null,
			dataDicCity:[],
			dataDicResume:null,
			dataDicResumeJobs:null,
			dataDicResumeMajor:null,
			dataDicTalent:[],
			educationList:[],//学历字典
			yearsOfWorking:[],//工作年限字典
			salaryRangeList:[],//薪资范围字典
			ageRangeList:[],//年龄要求字典
			sexList:[],//性别要求字典
			natureList:[],//工作性质字典
			projectTypeList:[],//需求类型字典
			industryList:[],//行业字典
			workTypeList:[],//职业类型
			welfareTagList:[],//福利亮点字典
			familyNameList:[],//民族字典
			workStatusList:[],//目前工作状态字典
			companyScaleList:[],//企业规模字典
			companyPropertyList:[],//企业性质
			marketServiceTypsList:[],//市场服务类别字典
			companyScaleList:[],//企业规模字典
			validForm:{},//验证框架示例
 		},
	  	methods: {
	  		/**
	  		 * 获取投标状态的中午翻转
	  		 */
	  		getBiddingStatusName:function(status){
	  			 if(status=="A")
  			    	 return "待处理";
  			     if(status=="B")
  			    	 return "已中标";
  			     if(status=="C")
  			    	 return "已淘汰";
	  		},
	  		//获取城市名称
	  		findDataDicCityName:function(key){
	  			return this.dataDicCommonFindName(key,"dataDicCity","openDataDicCity");
	  		},
	  		//获取服务类型名称
	  		findMarketServiceTypsName:function(key){
	  			return this.dataDicCommonFindName(key,"marketServiceTypsList","openMarketServiceTypsList");
	  		},
			//获取福利名称
	  		findWelfareName:function(key){
	  			return this.dataDicCommonFindName(key,"welfareTagList","openWelfareTagList");
	  		},
	  		//获取福利的全部名称，welfareTags用,分割;
			getWelfareTagsName:function(welfareTags){
				if (welfareTags) {
					this.openWelfareTagList();
					var getWelfareTagsName=[];
					var temp=welfareTags.split(",");
					for (var int = 0; int < temp.length; int++) {
						getWelfareTagsName.push(this.findWelfareName(temp[int]));
					}
					return getWelfareTagsName.join();
				}
			}
	  		,
	  		//获取工作性质名称
	  		findNatureName:function(key){
	  			return this.dataDicCommonFindName(key,"natureList","openNatureList");
	  		},
	  		//获取职位类别名称
	  		findWorkTypeName:function(key){
	  			return this.dataDicCommonFindName(key,"workTypeList","openWorkTypeList");
	  		},
	  		//获取性别要求名称
	  		findSexName:function(key){
	  			return this.dataDicCommonFindName(key,"sexList","openSexList");
	  		},
	  		//获取年龄要求名称
	  		findAgeRangeName:function(key){
	  			return this.dataDicCommonFindName(key,"ageRangeList","openAgeRangeList");
	  		},
	  		/**
	  		 * 获取学历名称
	  		 */
	  		findEducationName:function(key){
	  			return this.dataDicCommonFindName(key,"educationList","openEducationList");
	  		},
	  		/**
	  		 * 获取工作年限字典
	  		 */
	  		findYearsOfWorkingName:function(key){
	  			return this.dataDicCommonFindName(key,"yearsOfWorking","openYearsOfWorking");
	  		},
	  		/**
	  		 * 获取薪资范围
	  		 */
	  		findSalaryRangeName:function(key){
	  			return this.dataDicCommonFindName(key,"salaryRangeList","openSalaryRangeList");
	  		},
	  		/**
	  		 * 获取行业名称
	  		 */
	  		findIndustryName:function(key){
	  			return this.dataDicCommonFindName(key,"industryList","openIndustryList");
	  		},
	  		/**
	  		 * 获取行业名称,逗号分割的数组
	  		 */
	  		findIndustryNames:function(keys){
	  			var name=[];
	  			var _this=this;
	  			if (keys) {
	  				$.each(keys.split(','), function(index,key) {
	  					name.push(_this.dataDicCommonFindName(key,"industryList","openIndustryList"));
	  				});
				}
	  			return name.join();
	  		},
	  		/**
	  		 * 获取项目类型名称
	  		 */
	  		findProjectTypeName:function(key){
	  			return this.dataDicCommonFindName(key,"projectTypeList","openProjectTypeList");
	  		},
	  		/**
	  		 * 获取简历状态的名称
	  		 */
	  		getResumeName:function(status){
	  			 if(status=="A")
  			    	 return "新简历";
  			     if(status=="B")
  			    	 return "待沟通";
  			     if(status=="C")
  			    	 return "面试";
  			     if(status=="D")
  			    	 return "待录用";
  			     if(status=="E")
  			    	 return "待入职";
  			     if(status=="F")
  			    	 return "已入职";
  			     if(status=="T")
  			    	 return "淘汰";
  			     return"";
	  		},
	  		
	  		/**
	  		 * 企业规模字典
	  		 */
	  		openCompanyScaleList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","companyScaleList","Z013000");
	  		},
	  		/**
	  		 * 开启职位类别
	  		 */
	  		openWorkTypeList:function(){
	  			this.dataDicCommonOpen("dataDicAjax","dataDic","workTypeList","Z07");
	  		},
	  		/**
	  		 * 开启市场服务类别字典
	  		 */
	  		openMarketServiceTypsList:function(){
	  			this.dataDicCommonOpen("dataDicAjax","dataDic","marketServiceTypsList","Z05");
	  		},
	  		/**
	  		 * 开启福利
	  		 */
	  		openWelfareTagList:function(){
	  			this.dataDicCommonOpen("dataDicAjax","dataDic","welfareTagList","Z16");
	  		},
	  		/**
	  		 * 开启行业字典
	  		 */
	  		openIndustryList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","industryList","Z002000");
	  		},
	  		/**
	  		 * 开启需求类型字典
	  		 */
	  		openProjectTypeList:function(){
	  			this.dataDicCommonOpen("dataDicAjax","dataDic","projectTypeList","Z14");
	  		},
	  		/**
	  		 * 开启工作性质
	  		 */
	  		openNatureList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","natureList","Z003000");
	  		},
	  		/**
	  		 * 开启年龄要求
	  		 */
	  		openSexList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","sexList","Z012000");
	  		},
	  		/**
	  		 * 开启年龄要求
	  		 */
	  		openAgeRangeList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","ageRangeList","Z021000");
	  		},
	  		/**
	  		 * 开启薪资范围
	  		 */
	  		openSalaryRangeList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","salaryRangeList","Z025000");
	  		},
	  		/**
	  		 * 开启学历工作年限字典
	  		 */
	  		openYearsOfWorking:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","yearsOfWorking","Z007000");
	  		},
	  		/**
	  		 * 开启学历字典
	  		 */
	  		openEducationList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","educationList","Z027000");
	  		},
	  		/**
	  		 * 开启区域
	  		 */
	  		openDataDicCity:function(){
  				this.dataDicCityAjax();
	  		},
	  		/**
	  		 * 开启民族字典
	  		 */
	  		openFamilyNameList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","familyNameList","Z019000");
	  		},
	  		/**
	  		 * 开启目前工作状态
	  		 */
	  		openWorkStatusList:function(){
	  			this.dataDicCommonOpen("dataDicAjax","dataDic","workStatusList","Z17");
	  		},
	  		/**
	  		 * 开启企业规模
	  		 */
	  		openCompanyScaleList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","companyScaleList","Z013000");
	  		},
	  		/**
	  		 * 获取公司规模的名称
	  		 */
	  		findCompanyScaleListName:function(key){
	  			return this.dataDicCommonFindName(key,"companyScaleList","openCompanyScaleList");
	  		},
	  		/**
	  		 * 开启企业性质
	  		 */
	  		openCompanyPropertyList:function(){
	  			this.dataDicCommonOpen("dataDicResumeAjax","dataDicResume","companyPropertyList","Z014000");
	  		},
	  		/**
	  		 * 获取公司性质的名称
	  		 */
	  		findCompanyPropertyListName:function(key){
	  			return this.dataDicCommonFindName(key,"companyPropertyList","openCompanyPropertyList");
	  		},
	  		/**
	  		 * 以下是获取数据的方法和缓存数据的方法
	  		 */
	  		dataDicAjax:function(){
	  			if(this.dataDic){
	  				return this.dataDic;
	  			}
	  			this.dataDic=this.dataDicCommonAjax("dic/getDataDic")
	  			return this.dataDic;
	  		},
	  		dataDicResumeAjax:function(){
	  			if(this.dataDicResume){
	  				return this.dataDicResume;
	  			}
	  			this.dataDicResume=this.dataDicCommonAjax("dic/getDataDicResume")
	  			return this.dataDicResume;
	  		},
	  		dataDicCityAjax:function(){
	  			if(this.dataDicCity.length!=0){
	  				return this.dataDicCity;
	  			}
	  			this.dataDicCity=this.dataDicCommonAjax("dic/getDataDicCity")
	  			return this.dataDicCity;
	  		},
	  		dataDicCommonAjax:function(url){
	  			var temli=[];
	  			$.ajax({
			    	async:false,
					type: "post",
					url: url,
					dataType: "json",
					success: function (json) {
						temli=json.data;
					},
					error: function () {
					}
				});
	  			return temli;
	  		},
	  		dataDicFiltrate:function(list,alllist,istrue){
	  			var i;
	  			for (i in alllist){
	  				var tem=alllist[i];
	  				if (istrue(tem)) {
	  					list.push(tem);
					}
	  			}
	  		},
	  		/**
	  		 * 公共的字典开启方法
	  		 * @param AjaxName 获取数据的方法
	  		 * @param userDicName 字典集合名
	  		 * @param listName 字典名
	  		 * @param filtrValue 过滤字典集合的parentKey值
	  		 */
	  		dataDicCommonOpen:function(AjaxName,userDicName,listName,filtrValue){
	  			this[AjaxName]();
	  			var temp=[];
	  			if(this[listName].length>0)
		  			return
	  			this.dataDicFiltrate(temp,this[userDicName],function(o){
	  				return o.parentKey==filtrValue;
	  			})
	  			this[listName]=temp;
	  		},
	  		/**
	  		 * 公共的字典开启方法
	  		 * @param key 字典值 
	  		 * @param listName 字典名
	  		 * @param openDicFUNName 开启字典的名字
	  		 */
	  		dataDicCommonFindName:function(key,listName,openDicFUNName){
	  			this[openDicFUNName]();
	  			var i;
	  			var alllist=this[listName];
	  			for (i in alllist){
	  				var tem=alllist[i];
	  				if (tem.key==key) {
	  					return tem.value;
					}
	  			}
	  		},
	  		openFileUpload:function(){
	  			/*var _this=this;
	  			var index = layer.open({
  			        type:2,
  			        area:['200px','150px'],
  			        shade:[0.1,'#000'],
  			        shadeClose:true,
  			        title:'上传附件',
  			        content: ['upload/toFileUpload', 'no'],
  			        btnAlign: 'c',
  			        end: function(){
  			        	if(_this.fileLoadCallBack){
  			        		var uploadFileInfo=localStorage.getItem("uploadFileInfo");
  			        		if(uploadFileInfo){
  			        			var  obj = JSON.parse(uploadFileInfo);
  			        			localStorage.removeItem("uploadFileInfo")
  			        			_this.fileLoadCallBack(obj);
  			        		}
  			        	}
			          }
  			    });
	  			localStorage.setItem("fileIndex",index);*/
	  			var vm=this;
	  			/**
	  			 * 重新实现上传，不依赖控件
	  			 */
	  			if($("#fileCommon").length==0){//如果不存在，就在body后面一个
	  			//<input type="file" id="fileCommon" class="hide" />
	  				$("body").append('<input type="file" id="fileCommon" class="hide" />')
	  				$("#fileCommon").click();
	  				$("#fileCommon").on('change', function() {
	  					var allowed = ['jpg','gif','png','zip','doc','xls','xlsx','docx'];
	  		  			var ele=$("#fileCommon");
	  		  			var data = new FormData();
	  		  			//为FormData对象添加数据
	  		  			var breakEach = false;
	  		  			$.each(ele[0].files, function(i, file) {
	  		  				var ext = file.name.getExtension();
	  		  				if($.inArray(ext, allowed) === -1) {
	  		  					vm.msgerr("不支持此格式！");
	  		  					breakEach = true;
	  		  					return true;
	  		  				}
	  		  				data.append("Filedata", file);
	  		  			});
	  		  			if(breakEach) {
	  		  				return ;
	  		  			}
	  		  			//发送数据
	  		  			$.ajax({
	  		  			    url:'upload/fileUpload',
	  		  				type:'POST',
	  		  				data:data,
	  		  				cache: false,
	  		  				contentType: false,        //不可缺参数
	  		  				processData: false,        //不可缺参数
	  		  				success:function(data){
	  		  					if(vm.fileLoadCallBack) {
	  		  						vm.fileLoadCallBack(data);
	  		  					}
	  		  				},
	  		  				error:function(){
	  		  					alert('上传出错');
	  		  					$(".loading").hide();    //加载失败移除加载图片
	  		  			    }
	  		  			 });
	  				});
	  			}else{
	  				$("#fileCommon").click();
	  			}
	  		},
	  		openSelectIndustry:function(ids,type){//ids默认勾选的行业，逗号分割
	  			var _this=this;
	  			var selectType="checkbox";
	  			if (type) {
	  				selectType=type;
				}
	  			layer.open({
  			        type:2,
  			        area:['1100px','400px'],
  			        shade:[0.1,'#000'],
  			        shadeClose:true,
  			        title:'选择行业',
  			        btn:'确认',
  			        content: ['common/selectIndustry?ids='+ids+"&selectType="+selectType, 'no'],
  			        btnAlign: 'c',
  			        yes: function(index, layero){
  			        	
		  				if(_this.selectIndustryCallBack){
		  					var iframeWin = window[layero.find('iframe')[0]['name']];
		  					_this.selectIndustryCallBack(iframeWin.vueapp.selectIndustrys)
			        	}
		  				layer.close(index); //如果设定了yes回调，需进行手工关闭
	  			  }
  			    });
	  		},
	  		openSelectProjectType:function(ids,type){//ids勾选需求类别
	  			var _this=this;
	  			var selectType="checkbox";
	  			if (type) {
	  				selectType=type;
				}
	  			layer.open({
  			        type:2,
  			        area:['1100px','400px'],
  			        shade:[0.1,'#000'],
  			        shadeClose:true,
  			        title:'选择需求类别',
  			        btn:'确认',
  			        content: ['common/selectProjectType?ids='+ids+"&selectType="+selectType, 'no'],
  			        btnAlign: 'c',
  			        yes: function(index, layero){
  			        	
		  				if(_this.selectIndustryCallBack){
		  					var iframeWin = window[layero.find('iframe')[0]['name']];
		  					_this.selectProjectTypeCallBack(iframeWin.vueapp.selectProjectTypes)
			        	}
		  				layer.close(index); //如果设定了yes回调，需进行手工关闭
	  			  }
  			    });
	  		},
	  		openSelectJobType:function(ids,type){//ids勾选需求类别
	  			var _this=this;
	  			var selectType="checkbox";
	  			if (type) {
	  				selectType=type;
				}
	  			layer.open({
  			        type:2,
  			        area:['1100px','400px'],
  			        shade:[0.1,'#000'],
  			        shadeClose:true,
  			        title:'选择职位类别',
  			        btn:'确认',
  			        content: ['common/selectJobType?ids='+ids+"&selectType="+selectType, 'no'],
  			        btnAlign: 'c',
  			        yes: function(index, layero){
		  				if(_this.selectJobTypeCallBack){
		  					var iframeWin = window[layero.find('iframe')[0]['name']];
		  					_this.selectJobTypeCallBack(iframeWin.vueapp.selected)
			        	}
		  				layer.close(index); //如果设定了yes回调，需进行手工关闭
	  			  }
  			    });
	  		},
	  		selectArea:function(ids,type){//ids默认勾选的行业，逗号分割
	  			var _this=this;
	  			var selectType="checkbox";
	  			if (type) {
	  				selectType=type;
				}
	  			layer.open({
  			        type:2,
  			        area:['1100px','400px'],
  			        shade:[0.1,'#000'],
  			        shadeClose:true,
  			        title:'选择地区',
  			        btn:'确认',
  			        content: ['common/selectArea?ids='+ids+"&selectType="+selectType, 'no'],
  			        btnAlign: 'c',
  			        yes: function(index, layero){
  			        	
		  			/*	if(_this.selectIndustryCallBack){
		  					var iframeWin = window[layero.find('iframe')[0]['name']];
		  					_this.selectIndustryCallBack(iframeWin.vueapp.selectIndustrys)
			        	}*/
		  				layer.close(index); //如果设定了yes回调，需进行手工关闭
	  			  }
  			    });
	  		},
	  		isAuthenticationCompany:function(platformName){//rcsch,rcsp,qyxqxxk;//开通的平台
	  			var temData={};
	  			var isAuthentication=false;
	  			var constent="";
	  			var btn="";
	  			$.ajax({
			    	async:false,
					type: "post",
					url: "common/checkAuthenticationCompany",
					dataType: "json",
					success: function (json) {
						temData=json;
					},
					error: function () {
					}
				});
	  			if (temData.perfect!='Y') {
	  				constent="企业信息还不够完善，快去完善信息吧！？";
	  				btn="完善信息";
	  				isAuthentication=false;
				}else{
					isAuthentication=true;
				}
	  			if(temData.platform.indexOf(platformName)==-1){
	  				switch (platformName) {
					case "rcsch":
						constent="您还未开通人才市场化平台!开通后即可使用";
						break;
					case "rcsp":
						constent="您还未开通人才速配企业平台!开通后即可发布职位";
						break;
					case "qyxqxxk":
						constent="您还未开通企业需求信息库!";
						break;
					default:
						constent="您还未开通该功能!";
						break;
					}
	  				btn="去开通";
	  				isAuthentication=false;
	  			}else{
	  				isAuthentication=true;
	  			}
	  			
	  			if(!isAuthentication){
	  				layer.confirm(constent, {
		  				  btn: [btn,'取消'], //按钮
		  				  btnAlign: 'c'
		  				}, function(index){
		  				  top.location.href='cm/goCompanyInfo';
		  				}, function(index,layero){
		  					layer.close(index)
		  				});
	  			}
	  			return isAuthentication;
	  			
	  		},
	  		msg:function(msg){
	  			layer.msg(msg,{
	  			  icon: 1,
	  			  time: 1000 //2秒关闭（如果不配置，默认是3秒）
	  			});
	  		},
	  		msgerr:function(msg){
	  			layer.msg(msg,{
	  			  icon: 2,
	  			  time: 1000 //2秒关闭（如果不配置，默认是3秒）
	  			});
	  		},
	  		valid:function(){//校检
	  			return $(this.$el).Validform({
	  			});
	  		},
	  		copyClipboard:function(buttonEl,text){//复制到粘贴板
	  			var _this=this;
	  			var clipboard = new Clipboard(buttonEl,{
	  				text:function(){
	  					return text;
	  				}
	  			});
	  			
	  			clipboard.on('success', function(e) {
	  		        console.log(e);
	  		        _this.msg("复制成功")
	  		    });

	  			clipboard.on('error', function(e) {
	  		        console.log(e);
	  		      _this.msgerr("复制失败")
	  		    });
	  		},
			// 返回qq咨询链接
	  		getQQLink: function(qq) {
	  			return 'http://wpa.qq.com/msgrd?v=3&uin='+qq+'&site=qq&menu=yes';
			}
	  },
	  mounted:function(){
		  this.validForm=$(this.$el).Validform();//默认开启校检
	  },
	  components: {
	  	    'qq-online':qq_online
	  },
	  computed:{
		  provinceList : {
				get : function() {
					var that = this;
					var cs = [];
					for (var int = 0; int < that.dataDicCity.length; int++) {
						var c=that.dataDicCity[int];
						if(c.parentKey == 'C000000') {//省
							cs.push(c);
						}
					}
					return cs;
				}
			},
			cityList : {
				get : function() {
					var that = this;
					if (that.getSelectProvince) {
						var cs = [];
						for (var int = 0; int < that.dataDicCity.length; int++) {
							var c=that.dataDicCity[int];
							if(c.parentKey == that.getSelectProvince()) {//选择的省
								cs.push(c);
							}
						}
						return cs;
					}
				}
			},
			districtList : {
				get : function() {
					var that = this;
					if (that.getSelectCity) {
						var cs = [];
						for (var int = 0; int < that.dataDicCity.length; int++) {
							var c=that.dataDicCity[int];
							if(c.parentKey == that.getSelectCity()) {//选择的市
								cs.push(c);
							}
						}
						return cs;
					}
				}
			}
	  }
}
/**
 * 如果要对数据进行翻页，vue继承该js
 */
//
var pdlist_content = {//分页数据提示组件
	props:["pd","message"],
	template: '<div v-if="pd.list.length==0">{{message||\'未查询到相关数据\'}}</div>',
	/*template: '<div v-if="pd.totalResult==0">未查询到相关数据</div>',*/
}
var qq_online = {//分页数据提示组件
	props:["qq","message","type"],
	methods: {
		clickQQ: function () {
			var a=this;
			this.$emit('clickqqevent');//事件名称必须是小写
	    }
	  },
	template: ' <a target="_blank"  v-if="qq" :href="\'http://wpa.qq.com/msgrd?v=3&uin=\'+qq+\'&site=qq&menu=yes\'" ><img border="0" v-on:click="clickQQ()" :src="\'http://wpa.qq.com/pa?p=2:\'+qq+\':51\'" alt="点击这里给asda我发消息" title="点击这里给我发消息"/></a>',
	//template: '<div v-on:click="clickQQ()">未查询到相关数据</div>',
}
var vueappPageConfig={
	  	data:{
	  		pageDomId:null,
	  		currentPage:null,
	  		showCount:null,
	  		pageUrl:null,
	  		paramObject:{},
	  		checked:false,
	  		checkboxModel:[],
	  		pd:{list:[]}
	  	},
	  	methods: {
		    listPage:function(pageDomId,pageUrl,currentPage,showCount,paramObject,callBack){
		    	var _paramObject={showCount:showCount||10,currentPage:currentPage||1};
			    _paramObject=$.extend(_paramObject,paramObject);
			    var _thisvue=this;
			    this.checked=false;
			    _thisvue.pageDomId=pageDomId;
			    _thisvue.currentPage=currentPage;
			    _thisvue.pageUrl=pageUrl;
			    _thisvue.showCount=showCount;
//			    _thisvue.paramObject=_paramObject;
			    if(paramObject){
			    	_thisvue.paramObject=$.extend(true,_thisvue.paramObject,_paramObject);
			    }
			    $.ajax({
			    	async:false,
					type: "post",
					url: pageUrl,
					dataType: "json",
					data: _thisvue.paramObject,
					success: function (json) {
						json.pd.totalPage = json.totalPage;
						json.pd.totalResult = json.totalResult;
						_thisvue.pd=json.pd;
						_thisvue.totalPage = json.totalPage;
						if(callBack){
							callBack(json);
						}
						//显示分页
					    laypage({
					      cont: pageDomId, //容器。值支持id名、原生dom对象，jquery对象。【如该容器为】：<div id="page1"></div>
					      pages: json.totalPage, //通过后台拿到的总页数
					      curr: json.currentPage || 1, //当前页
					      jump: function(obj, first){ //触发分页后的回调
					        if(!first){ //点击跳页触发函数自身，并传递当前页：obj.curr
					        	_paramObject=$.extend(_thisvue.paramObject,{currentPage:obj.curr||1});
					        	_thisvue.listPage(pageDomId, pageUrl, _paramObject.currentPage, showCount, _paramObject,callBack)
					        }
					      }
					    });
					},
					error: function () {
					}
				});
		    },
		    refreshListPage:function(paramObject){
		    	 var _thisvue=this;
		    	 _thisvue.listPage(_thisvue.pageDomId, _thisvue.pageUrl, 1, _thisvue.showCount,paramObject);
		    },
		    checkedAll: function() {
		        var _this = this;
		        console.log(_this.checkboxModel);
		        if (this.checked) {
		        	//实现全选
		          _this.checkboxModel = [];
		          this.pd.list.forEach(function(item) {
		            _this.checkboxModel.push(item.id);
		          });
		        }else{//实现反选
		          _this.checkboxModel = [];
		        }
		      }
	  	  },
	  	watch: {//深度 watcher
	  	  'checkboxModel': {
	  	    handler: function (val, oldVal) { 
	  	      if (this.checkboxModel.length === this.pd.list.length) {
	  	        this.checked=true;
	  	      }else{
	  	        this.checked=false;
	  	      }
	  	    },
	  	    deep: true
	  	  }
	  	},
	  	components: {
	  	    'pdlist-content': pdlist_content,
	  	    'qq-online':qq_online
	  	  }
	  }
vueappPageConfig=$.extend(true,vueappPageConfig,vueappBase);
function createEditor(domId){
	var editor = new wangEditor(domId);

    // 普通的自定义菜单
    editor.config.menus = [
//				'source',
//				'|',
//				'bold',
//				'underline',
//				'italic',
//				'strikethrough',
//				'eraser',
//				'forecolor',
//				'bgcolor',
//				'|',
				'quote',
				'fontfamily',
				'fontsize',
				'head',
				'unorderlist',
				'orderlist',
				'alignleft',
				'aligncenter',
				'alignright',
				'|',
//				'link',
//				'unlink',
				'table',
				'emotion',
//				'|',
//				'img',
//				'video',
//				'location',
//				'insertcode',
				'|',
				'undo',
				'redo',
				'fullscreen'
     ];
    editor.create();
    return editor;
}
//绘制图表
function drawChart(xArr, chartName, dataArr, xRotate) {
    var option = {
        tooltip : {
            trigger: 'axis'
        },
        grid: {
            top: '8%',
            left: '1%',
            right: '3%',
            bottom: '8%',
            containLabel: true
        },
        xAxis : [
            {
                type : 'category',
                boundaryGap : false,
                data : xArr,
                axisLabel: {
                    rotate:xRotate,
                    textStyle: {
                        color: '#999'
                    }
                },
                axisTick: {
                    show: false
                },
                nameTextStyle: {
                    color: '#999'
                }
            }
        ],
        yAxis : [
            {
                type : 'value',
                axisLine: {
                    show: false
                },
                axisTick: {
                    show: false
                }
            }
        ],
        series : [
            {
                name:chartName,
                type:'line',
                symbolSize: 8,
                symbol: 'circle',
                label: {
                    normal: {
                        show: true,
                        position: 'top'
                    }
                },
                "itemStyle": {
                    "normal": {
                        "color": "#338BF1"
                    }
                },
                lineStyle: {
                    normal: {
                        color: '#338BF1',
                        width: 1,
                    },
                },
                areaStyle: {
                    normal: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                            offset: 0, color: 'rgb(167, 228, 255)' // 0% 处的颜色
                        }, {
                            offset: 1, color: 'rgb(255, 255, 255)' // 100% 处的颜色
                        }], false)
                    }
                },
                data:dataArr
            }
        ]
    };
    return option;
}
//获取绘制图表div的id
function getChartAreaId(eleId) {
    var chart = echarts.init(document.getElementById(eleId));
    return chart
}
//获取绘制图表区域类似的宽度
function getChartAreaWidth(){
    var width=$('.content-charts').css('width');
    if(parseInt(width.split('p')[0])>1142){
        return width;
    }else{
        return '1142px';
    }
}